#!/bin/bash

function build_sh()
{
(
        bash build_qcs8250.sh
)
}

user=zsw
zsw_ip=10.66.40.16

files_dir=/home/zsw/files/

TARGET_DIR=LINUX/android/out/target/product/kona/

function copy_files()
{
(
        scp $user@$zsw_ip:$files_dir/abl.elf   $TARGET_DIR/abl.elf
        scp $user@$zsw_ip:$files_dir/*.img     $TARGET_DIR/
        scp $user@$zsw_ip:$files_dir/vmlinux   $TARGET_DIR/obj/KERNEL_OBJ/
        scp -r $user@$zsw_ip:$files_dir/vendor/firmware/   $TARGET_DIR/vendor/
	
)
}

copy_files

build_sh

